<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<%@ page import="com.taobao.wolfwolf.util.ReadIni" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>补打快递单</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<style type="text/css">
		<!--
			.content {
				margin-left: 20;
			}
		-->
	</style>
	<link type="text/css" href="css/cupertino/jquery-ui-1.8.19.custom.css" rel="Stylesheet" />
	<link href="css/comm.css" type="text/css" rel="stylesheet">
	<link href="css/demos.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery-latest.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.19.custom.min.js"></script>
	<script type="text/javascript" src="./js/comm.js"></script>
	<script type="text/javascript" src="./js/send.js"></script>
	<script type="text/javascript">
		
	</script>
	<base target="_self"> 
  </head>
  
  <body>
  	<% 
  		request.setCharacterEncoding("utf8");
  		
  		String tid = request.getParameter("tid");
  		String buyer_name = request.getParameter("buyer_name");
  		String path = request.getSession().getServletContext().getRealPath("/") + "WEB-INF\\";
  		ReadIni readAwbIni = new ReadIni(path + "serialcode.ini");
  		String serial = readAwbIni.getProperty("express_count");
  		
  		request.setAttribute("tid", tid);
  		request.setAttribute("serial", serial);
  		request.setAttribute("buyer_name", buyer_name);
  		
  	%>
  	<div id="dialog-send-confirm" title="发货??" style="display:none;">
		<p style="font-size:14px;"><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>你确定要发货吗(点了发货就不能更改了哦!!!!)?</p>
	</div>
  	<div class="demo" align="center">
  		<form id='form' action="./servlet/PrintExpress">
  			<table align='center'>
  				<tr>
  					<td align='right'>
  						<div class="content" style="font-size:14;">
  							<b>买家ID:</b>
  						</div>
  					</td>
  					<td>
  						${buyer_name}
  					</td>
  				</tr>
  				<tr>
  					<td colspan='3' align='center'>
  						<div id="radio">
  							<input type="radio" id="online_send" name="online_send" value="1" /><label for="online_send">在线下单</label>
							<input type="radio" id="offline_send" name="online_send" checked="checked" value="2" /><label for="offline_send">离线下单</label>
  						</div>
  					</td>
  				</tr>
  				<tr>
  					<td align="right"><b>订单号:</b></td>
  					<td>
  						<div class="content">
  							${tid}
  							<input type="hidden" name='tid' value='${tid}' />		
  						</div>
  					</td>
  					<td width='150'>&nbsp;</td>
  				</tr>
  				<tr>
  					<td align="right"><b>快递公司:</b></td>
  					<td>
  						<div class="content">
  							<select name='express' id='express' size="1" onchange='selecChange();'>
								<option value="STO" SELECTED>申通E物流</option>
								<option value="SF">顺丰速运</option>
								<option value="YTO">圆通速递</option>
								<option value="EMS">EMS</option>
					    	</select> 
  						</div>
					</td>
					<td>&nbsp;</td>
  				</tr>
  				<tr>
  					<td align="right"><b>快递单序列数计数</b></td>  	
  					<td>
  						<div class="content">
  							<input id='serial' type="text" name="serial" value="${serial}" onfocus='' autocomplete='off' />
  						</div>
  					</td>
  					<td>&nbsp;</td>			
  				</tr>
  				<tr>
  					<td align="right"><b>运单号:</b></td>
  					<td>
  						<div class="content">
  							<input id='awb' type="text" name="awb" onfocus='showAwbDescript();' autocomplete='off' />
  						</div>
  					</td>
  					<td><div id='awb_desc'></div>&nbsp;</td>
  				</tr>
  				<tr>
  					<td colspan='2' align="center">
  						<div style="margin-top: 15;">
		  					<input type='hidden' name='send_goods_flag' id='send_goods_flag' />
		  					<input type='hidden' name='print_flag' id='print_flag' />
		  					<input id='print_and_send' type='submit' value='发货&打印' onclick='printAndSendGoods();' />
		  					<input id='send_goods' type='submit' value='发货' onclick='sendGoods();' />
		  					<input id='print' type='button' value='打印' onclick="printKD('${tid}');" />
		  				</div>
  					</td>
  				</tr>
  			</table>
	    </form>
  	</div>
  </body>
</html>
